package com.gywj.race.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ParticipantRaceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int pageNum = -1;

    protected int pageSize = -1;

    public ParticipantRaceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public ParticipantRaceExample setPageNum(int pageNum) {
        this.pageNum=pageNum;
        return (ParticipantRaceExample) this;
    }

    public int getPageNum() {
        return pageNum;
    }

    public ParticipantRaceExample setPageSize(int pageSize) {
        this.pageSize=pageSize;
        return (ParticipantRaceExample) this;
    }

    public int getPageSize() {
        return pageSize;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNull() {
            addCriterion("open_id is null");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNotNull() {
            addCriterion("open_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpenIdEqualTo(String value) {
            addCriterion("open_id =", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotEqualTo(String value) {
            addCriterion("open_id <>", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThan(String value) {
            addCriterion("open_id >", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("open_id >=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThan(String value) {
            addCriterion("open_id <", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThanOrEqualTo(String value) {
            addCriterion("open_id <=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLike(String value) {
            addCriterion("open_id like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotLike(String value) {
            addCriterion("open_id not like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIn(List<String> values) {
            addCriterion("open_id in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotIn(List<String> values) {
            addCriterion("open_id not in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdBetween(String value1, String value2) {
            addCriterion("open_id between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotBetween(String value1, String value2) {
            addCriterion("open_id not between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andPibIdIsNull() {
            addCriterion("pib_id is null");
            return (Criteria) this;
        }

        public Criteria andPibIdIsNotNull() {
            addCriterion("pib_id is not null");
            return (Criteria) this;
        }

        public Criteria andPibIdEqualTo(Integer value) {
            addCriterion("pib_id =", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdNotEqualTo(Integer value) {
            addCriterion("pib_id <>", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdGreaterThan(Integer value) {
            addCriterion("pib_id >", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pib_id >=", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdLessThan(Integer value) {
            addCriterion("pib_id <", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdLessThanOrEqualTo(Integer value) {
            addCriterion("pib_id <=", value, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdIn(List<Integer> values) {
            addCriterion("pib_id in", values, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdNotIn(List<Integer> values) {
            addCriterion("pib_id not in", values, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdBetween(Integer value1, Integer value2) {
            addCriterion("pib_id between", value1, value2, "pibId");
            return (Criteria) this;
        }

        public Criteria andPibIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pib_id not between", value1, value2, "pibId");
            return (Criteria) this;
        }

        public Criteria andTeamIdIsNull() {
            addCriterion("team_id is null");
            return (Criteria) this;
        }

        public Criteria andTeamIdIsNotNull() {
            addCriterion("team_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeamIdEqualTo(Integer value) {
            addCriterion("team_id =", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotEqualTo(Integer value) {
            addCriterion("team_id <>", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThan(Integer value) {
            addCriterion("team_id >", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("team_id >=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThan(Integer value) {
            addCriterion("team_id <", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdLessThanOrEqualTo(Integer value) {
            addCriterion("team_id <=", value, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdIn(List<Integer> values) {
            addCriterion("team_id in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotIn(List<Integer> values) {
            addCriterion("team_id not in", values, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdBetween(Integer value1, Integer value2) {
            addCriterion("team_id between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andTeamIdNotBetween(Integer value1, Integer value2) {
            addCriterion("team_id not between", value1, value2, "teamId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdIsNull() {
            addCriterion("alumni_id is null");
            return (Criteria) this;
        }

        public Criteria andAlumniIdIsNotNull() {
            addCriterion("alumni_id is not null");
            return (Criteria) this;
        }

        public Criteria andAlumniIdEqualTo(Integer value) {
            addCriterion("alumni_id =", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdNotEqualTo(Integer value) {
            addCriterion("alumni_id <>", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdGreaterThan(Integer value) {
            addCriterion("alumni_id >", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("alumni_id >=", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdLessThan(Integer value) {
            addCriterion("alumni_id <", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdLessThanOrEqualTo(Integer value) {
            addCriterion("alumni_id <=", value, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdIn(List<Integer> values) {
            addCriterion("alumni_id in", values, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdNotIn(List<Integer> values) {
            addCriterion("alumni_id not in", values, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdBetween(Integer value1, Integer value2) {
            addCriterion("alumni_id between", value1, value2, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniIdNotBetween(Integer value1, Integer value2) {
            addCriterion("alumni_id not between", value1, value2, "alumniId");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionIsNull() {
            addCriterion("alumni_relation_persion is null");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionIsNotNull() {
            addCriterion("alumni_relation_persion is not null");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionEqualTo(String value) {
            addCriterion("alumni_relation_persion =", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionNotEqualTo(String value) {
            addCriterion("alumni_relation_persion <>", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionGreaterThan(String value) {
            addCriterion("alumni_relation_persion >", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionGreaterThanOrEqualTo(String value) {
            addCriterion("alumni_relation_persion >=", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionLessThan(String value) {
            addCriterion("alumni_relation_persion <", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionLessThanOrEqualTo(String value) {
            addCriterion("alumni_relation_persion <=", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionLike(String value) {
            addCriterion("alumni_relation_persion like", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionNotLike(String value) {
            addCriterion("alumni_relation_persion not like", value, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionIn(List<String> values) {
            addCriterion("alumni_relation_persion in", values, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionNotIn(List<String> values) {
            addCriterion("alumni_relation_persion not in", values, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionBetween(String value1, String value2) {
            addCriterion("alumni_relation_persion between", value1, value2, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andAlumniRelationPersionNotBetween(String value1, String value2) {
            addCriterion("alumni_relation_persion not between", value1, value2, "alumniRelationPersion");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion("role_id is null");
            return (Criteria) this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion("role_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoleIdEqualTo(Integer value) {
            addCriterion("role_id =", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotEqualTo(Integer value) {
            addCriterion("role_id <>", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThan(Integer value) {
            addCriterion("role_id >", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("role_id >=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThan(Integer value) {
            addCriterion("role_id <", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(Integer value) {
            addCriterion("role_id <=", value, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdIn(List<Integer> values) {
            addCriterion("role_id in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotIn(List<Integer> values) {
            addCriterion("role_id not in", values, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdBetween(Integer value1, Integer value2) {
            addCriterion("role_id between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andRoleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("role_id not between", value1, value2, "roleId");
            return (Criteria) this;
        }

        public Criteria andEventIdIsNull() {
            addCriterion("event_id is null");
            return (Criteria) this;
        }

        public Criteria andEventIdIsNotNull() {
            addCriterion("event_id is not null");
            return (Criteria) this;
        }

        public Criteria andEventIdEqualTo(Integer value) {
            addCriterion("event_id =", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotEqualTo(Integer value) {
            addCriterion("event_id <>", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdGreaterThan(Integer value) {
            addCriterion("event_id >", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("event_id >=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdLessThan(Integer value) {
            addCriterion("event_id <", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdLessThanOrEqualTo(Integer value) {
            addCriterion("event_id <=", value, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdIn(List<Integer> values) {
            addCriterion("event_id in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotIn(List<Integer> values) {
            addCriterion("event_id not in", values, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdBetween(Integer value1, Integer value2) {
            addCriterion("event_id between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria andEventIdNotBetween(Integer value1, Integer value2) {
            addCriterion("event_id not between", value1, value2, "eventId");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNull() {
            addCriterion("group_id is null");
            return (Criteria) this;
        }

        public Criteria andGroupIdIsNotNull() {
            addCriterion("group_id is not null");
            return (Criteria) this;
        }

        public Criteria andGroupIdEqualTo(Integer value) {
            addCriterion("group_id =", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotEqualTo(Integer value) {
            addCriterion("group_id <>", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThan(Integer value) {
            addCriterion("group_id >", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("group_id >=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThan(Integer value) {
            addCriterion("group_id <", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdLessThanOrEqualTo(Integer value) {
            addCriterion("group_id <=", value, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdIn(List<Integer> values) {
            addCriterion("group_id in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotIn(List<Integer> values) {
            addCriterion("group_id not in", values, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdBetween(Integer value1, Integer value2) {
            addCriterion("group_id between", value1, value2, "groupId");
            return (Criteria) this;
        }

        public Criteria andGroupIdNotBetween(Integer value1, Integer value2) {
            addCriterion("group_id not between", value1, value2, "groupId");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeIsNull() {
            addCriterion("participant_code is null");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeIsNotNull() {
            addCriterion("participant_code is not null");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeEqualTo(String value) {
            addCriterion("participant_code =", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeNotEqualTo(String value) {
            addCriterion("participant_code <>", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeGreaterThan(String value) {
            addCriterion("participant_code >", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("participant_code >=", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeLessThan(String value) {
            addCriterion("participant_code <", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeLessThanOrEqualTo(String value) {
            addCriterion("participant_code <=", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeLike(String value) {
            addCriterion("participant_code like", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeNotLike(String value) {
            addCriterion("participant_code not like", value, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeIn(List<String> values) {
            addCriterion("participant_code in", values, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeNotIn(List<String> values) {
            addCriterion("participant_code not in", values, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeBetween(String value1, String value2) {
            addCriterion("participant_code between", value1, value2, "participantCode");
            return (Criteria) this;
        }

        public Criteria andParticipantCodeNotBetween(String value1, String value2) {
            addCriterion("participant_code not between", value1, value2, "participantCode");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdIsNull() {
            addCriterion("event_price_id is null");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdIsNotNull() {
            addCriterion("event_price_id is not null");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdEqualTo(Integer value) {
            addCriterion("event_price_id =", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdNotEqualTo(Integer value) {
            addCriterion("event_price_id <>", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdGreaterThan(Integer value) {
            addCriterion("event_price_id >", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("event_price_id >=", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdLessThan(Integer value) {
            addCriterion("event_price_id <", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdLessThanOrEqualTo(Integer value) {
            addCriterion("event_price_id <=", value, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdIn(List<Integer> values) {
            addCriterion("event_price_id in", values, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdNotIn(List<Integer> values) {
            addCriterion("event_price_id not in", values, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdBetween(Integer value1, Integer value2) {
            addCriterion("event_price_id between", value1, value2, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andEventPriceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("event_price_id not between", value1, value2, "eventPriceId");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(BigDecimal value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(BigDecimal value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(BigDecimal value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(BigDecimal value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<BigDecimal> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<BigDecimal> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andFinalResultIsNull() {
            addCriterion("final_result is null");
            return (Criteria) this;
        }

        public Criteria andFinalResultIsNotNull() {
            addCriterion("final_result is not null");
            return (Criteria) this;
        }

        public Criteria andFinalResultEqualTo(String value) {
            addCriterion("final_result =", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultNotEqualTo(String value) {
            addCriterion("final_result <>", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultGreaterThan(String value) {
            addCriterion("final_result >", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultGreaterThanOrEqualTo(String value) {
            addCriterion("final_result >=", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultLessThan(String value) {
            addCriterion("final_result <", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultLessThanOrEqualTo(String value) {
            addCriterion("final_result <=", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultLike(String value) {
            addCriterion("final_result like", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultNotLike(String value) {
            addCriterion("final_result not like", value, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultIn(List<String> values) {
            addCriterion("final_result in", values, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultNotIn(List<String> values) {
            addCriterion("final_result not in", values, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultBetween(String value1, String value2) {
            addCriterion("final_result between", value1, value2, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalResultNotBetween(String value1, String value2) {
            addCriterion("final_result not between", value1, value2, "finalResult");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceIsNull() {
            addCriterion("final_distance is null");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceIsNotNull() {
            addCriterion("final_distance is not null");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceEqualTo(String value) {
            addCriterion("final_distance =", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceNotEqualTo(String value) {
            addCriterion("final_distance <>", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceGreaterThan(String value) {
            addCriterion("final_distance >", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceGreaterThanOrEqualTo(String value) {
            addCriterion("final_distance >=", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceLessThan(String value) {
            addCriterion("final_distance <", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceLessThanOrEqualTo(String value) {
            addCriterion("final_distance <=", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceLike(String value) {
            addCriterion("final_distance like", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceNotLike(String value) {
            addCriterion("final_distance not like", value, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceIn(List<String> values) {
            addCriterion("final_distance in", values, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceNotIn(List<String> values) {
            addCriterion("final_distance not in", values, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceBetween(String value1, String value2) {
            addCriterion("final_distance between", value1, value2, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andFinalDistanceNotBetween(String value1, String value2) {
            addCriterion("final_distance not between", value1, value2, "finalDistance");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNull() {
            addCriterion("online is null");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNotNull() {
            addCriterion("online is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineEqualTo(Integer value) {
            addCriterion("online =", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotEqualTo(Integer value) {
            addCriterion("online <>", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThan(Integer value) {
            addCriterion("online >", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanOrEqualTo(Integer value) {
            addCriterion("online >=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThan(Integer value) {
            addCriterion("online <", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanOrEqualTo(Integer value) {
            addCriterion("online <=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineIn(List<Integer> values) {
            addCriterion("online in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotIn(List<Integer> values) {
            addCriterion("online not in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineBetween(Integer value1, Integer value2) {
            addCriterion("online between", value1, value2, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotBetween(Integer value1, Integer value2) {
            addCriterion("online not between", value1, value2, "online");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}